package com.ld.control.business.process.vo.internal.node;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class CustomNode {

    @Schema(description = "参数名称")
    private String name;

    @Schema(description = "参数值如果@开头则是变量")
    private String value;

    @Schema(description = "是否支持变量：0否，1是")
    private Integer variableFlag;

    @Schema(description = "0请求参数，1返回参数")
    private Integer useType;

    @Schema(description = "参数类型：int/string/float/decimal/array/jsonObject")
    private String paramType;

    public CustomNode() {}

    public CustomNode(String name, String value, Integer variableFlag, Integer useType, String paramType) {
        this.name = name;
        this.value = value;
        this.variableFlag = variableFlag;
        this.useType = useType;
        this.paramType = paramType;
    }
}
